package com.glorysoft.wangnianxinpda.activity;

import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;

import android.os.Bundle;
import android.text.TextWatcher;

import com.glorysoft.wangnianxinpda.R;
import com.glorysoft.wangnianxinpda.base.BaseActivity;
import com.glorysoft.wangnianxinpda.base.Constant;
import com.glorysoft.wangnianxinpda.databinding.ActivityMineInfoBinding;
import com.pda.platform.ui.ui_pdaplatform.entity.FreeUI_AddViewEntity;
import com.pda.platform.ui.ui_pdaplatform.utils_public.FreeApi_StaticMembers;
import com.pda.platform.ui.ui_pdaplatform.utils_public.FreeApi_Utils;

public class MineInfoActivity extends BaseActivity {
    private ActivityMineInfoBinding binding = null;

    @Override
    protected int getLayoutResId() {
        return super.getLayoutResId();
    }

    @Override
    protected void initView() {
        binding = DataBindingUtil.setContentView(this, R.layout.activity_mine_info);
    }

    @Override
    protected void initData() {
        binding.setLoginEntity(Constant.loginEntity);
    }

    @Override
    protected FreeUI_AddViewEntity getBaseEntity() {
        freeUI_titleView.setTitle(getString(R.string.myInfo));
        freeUI_titleView.setRightListener(getString(R.string.update_pwd), v -> {
            FreeApi_Utils.skipWithExtraIntent("header", this, UpdatePwdActivity.class);
        });
        return new FreeUI_AddViewEntity(getIntent().getStringExtra(FreeApi_StaticMembers.SHOW_PLUGIN_KEY), binding.llMain);

    }


}